import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home/index.vue'
import My from '../views/My/index.vue'

let routes = [
  {
    path: "/",
    redirect: "/home",
    name: "App",
  },
  {
    path: "/home",
    name: "Home",
    component: Home
  },
  {
    path: "/my",
    name: "My",
    component: My
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router